package com.daka.entity;

import org.apache.commons.lang3.StringUtils;

import java.util.Date;

public class Activity {

    public static final int TYPE_1 = 1; //单天
    public static final int TYPE_2 = 2; //连续多天
    public static final int TYPE_3 = 3; //每周期

    /**
     * .
     */
    private Long id;

    /**
     * .活动一号通
     */
    private String activityCode;

    /**
     * .活动名称
     */
    private String name;

    /**
     * .活动开始日期
     */
    private String startTime;

    /**
     * .活动结束日期
     */
    private String endTime;

    /**
     * .活动删除状态 0 未 1 已
     */
    private Integer delStatus;

    /**
     * .活动结束7天后是否被封存 0 未 1已
     */
    private Integer locked;

    /**
     * .
     */
    private Integer actStatus;

    /**
     * .所属社团
     */
    private Long groupId;

    /**
     * .
     */
    private String platform;

    /**
     * .活动发布日期
     */
    private Date createTime;

    /**
     * .活动地址
     */
    private String address;

    /**
     * .报名人数
     */
    private Integer applys;

    /**
     * .参加人数
     */
    private Integer attends;

    /**
     * .活动图片
     */
    private String imgs;

    /**
     * . 活动现场负责人
     */
    private Long monitor;

    /**
     * .需要人数
     */
    private Integer needs;

    /**
     * .省市
     */
    private String province;

    /**
     * .地级市
     */
    private String city;

    /**
     * .打卡时允许的偏差距离 1公里 3 公里 5公里 -1不限制
     */
    private Integer scope;

    /**
     * .好评数
     */
    private Integer goodComments;

    /**
     * .中评数
     */
    private Integer midComments;

    /**
     * .差评数
     */
    private Integer badComments;

    /**
     * .区县
     */
    private String district;

    /**
     * .是否只允许本社团成员参加 0否 1 是
     */
    private Integer selfGroup;

    /**
     * .活动标签
     */
    private String tags;

    /**
     * .本次活动完成的公益时间 单位分钟
     */
    private Integer times;

    /**
     * .是否被置顶
     */
    private Integer top;

    /**
     * .活动开展频率 1 单天 2连续多天 3 周期
     */
    private Integer type;

    /**
     * .活动周期（1 2 3 4 5 6 7）
     */
    private String weekDay;

    /**
     * . 发布者
     */
    private Long volunteerId;

    /**
     * .纬度
     */
    private Double lat;

    /**
     * .经度
     */
    private Double lng;

    /**
     * .老数据导入时老的活动编号
     */
    private Long oldid;

    /**
     * .浏览量
     */
    private Integer browses;

    /**
     * .
     */
    private String skill;

    /**
     * .
     */
    private String client;

    /**
     * .
     */
    private Integer orderNum;

    /**
     * .简介
     */
    private String demo;


    //业务需要数据库中没有的属性
    private Group group;            //所属组织
    private Volunteer createUser;     //创建者
    private int limitStart;
    private int limitEnd ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getActivityCode() {
        return activityCode;
    }

    public void setActivityCode(String activityCode) {
        this.activityCode = StringUtils.isBlank(activityCode)? null : activityCode.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = StringUtils.isBlank(name)? null : name.trim();
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = StringUtils.isBlank(startTime)? null : startTime.trim();
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = StringUtils.isBlank(endTime)? null : endTime.trim();
    }

    public Integer getDelStatus() {
        return delStatus;
    }

    public void setDelStatus(Integer delStatus) {
        this.delStatus = delStatus;
    }

    public Integer getLocked() {
        return locked;
    }

    public void setLocked(Integer locked) {
        this.locked = locked;
    }

    public Integer getActStatus() {
        return actStatus;
    }

    public void setActStatus(Integer actStatus) {
        this.actStatus = actStatus;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = StringUtils.isBlank(platform)? null : platform.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = StringUtils.isBlank(address)? null : address.trim();
    }

    public Integer getApplys() {
        return applys;
    }

    public void setApplys(Integer applys) {
        this.applys = applys;
    }

    public Integer getAttends() {
        return attends;
    }

    public void setAttends(Integer attends) {
        this.attends = attends;
    }

    public String getImgs() {
        return imgs;
    }

    public void setImgs(String imgs) {
        this.imgs = StringUtils.isBlank(imgs)? null : imgs.trim();
    }

    public Long getMonitor() {
        return monitor;
    }

    public void setMonitor(Long monitor) {
        this.monitor = monitor;
    }

    public Integer getNeeds() {
        return needs;
    }

    public void setNeeds(Integer needs) {
        this.needs = needs;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = StringUtils.isBlank(province)? null : province.trim();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = StringUtils.isBlank(city)? null : city.trim();
    }

    public Integer getScope() {
        return scope;
    }

    public void setScope(Integer scope) {
        this.scope = scope;
    }

    public Integer getGoodComments() {
        return goodComments;
    }

    public void setGoodComments(Integer goodComments) {
        this.goodComments = goodComments;
    }

    public Integer getMidComments() {
        return midComments;
    }

    public void setMidComments(Integer midComments) {
        this.midComments = midComments;
    }

    public Integer getBadComments() {
        return badComments;
    }

    public void setBadComments(Integer badComments) {
        this.badComments = badComments;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = StringUtils.isBlank(district)? null : district.trim();
    }

    public Integer getSelfGroup() {
        return selfGroup;
    }

    public void setSelfGroup(Integer selfGroup) {
        this.selfGroup = selfGroup;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = StringUtils.isBlank(tags)? null : tags.trim();
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public Integer getTop() {
        return top;
    }

    public void setTop(Integer top) {
        this.top = top;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getWeekDay() {
        return weekDay;
    }

    public void setWeekDay(String weekDay) {
        this.weekDay = StringUtils.isBlank(weekDay)? null : weekDay.trim();
    }

    public Long getVolunteerId() {
        return volunteerId;
    }

    public void setVolunteerId(Long volunteerId) {
        this.volunteerId = volunteerId;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public Long getOldid() {
        return oldid;
    }

    public void setOldid(Long oldid) {
        this.oldid = oldid;
    }

    public Integer getBrowses() {
        return browses;
    }

    public void setBrowses(Integer browses) {
        this.browses = browses;
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = StringUtils.isBlank(skill)? null : skill.trim();
    }

    public String getClient() {
        return client;
    }

    public void setClient(String client) {
        this.client = StringUtils.isBlank(client)? null : client.trim();
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getDemo() {
        return demo;
    }

    public void setDemo(String demo) {
        this.demo = StringUtils.isBlank(demo)? null : demo.trim();
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group group) {
        this.group = group;
    }


    public Volunteer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Volunteer createUser) {
        this.createUser = createUser;
    }


    public int getLimitEnd() {
        return limitEnd;
    }

    public void setLimitEnd(int limitEnd) {
        this.limitEnd = limitEnd;
    }

    public int getLimitStart() {
        return limitStart;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart = limitStart;
    }



}